﻿namespace PathTest
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var path = new FileInfo(@"\");

            var dirInfo = path.Directory;

        }
    }
}